#!/bin/bash
date_stamp=`date "+%Y-%m-%d %H:%M:%S"`
date1=`date "+%Y-%m-%d-%H-%-M-%S"`
branch_v=$1
echo "123+123" 
WEBSITE_HOME=$HOME/test-dao4art-frontend/

rm -rf /www/dao4art-website/*
cp -r $WEBSITE_HOME/dist/*   /www/dao4art-website
cd /www/dao4art-website/ && mkdir static/ && mv {css/,images/,fonts/,js/} static/ && echo "目录移动成功!" 
sudo nginx -s reload
send_weixin_v2  "【部署推送】\n【$date_stamp】\n【test-dao4art】\n【frontend-website/前端/】\n【测试环境】【test-dao4art/18.142.181.155】\n【$branch_v】 分支部署完成, 由 $2 用户构建部署 "
